package com.huitu.whht.base.core.api.sms.send.entities;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.huitu.whht.api.core.common.base.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeDeserializer;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeSerializer;
import java.time.LocalDateTime;

/**
 * 说明: 短信发送情况详情表主键实体类,表名称: T_WHHT_SMS_SEND_B <br/>
 * 日期: 2019-04-11
 * @author LiuCW
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SmsSendBKey extends BaseEntity {

private static final long serialVersionUID = 4L;

    /**
      * 短信编码
      */
    private String smsCd;
    /**
      * 短信发送状态码(0,发送成功;其它代表发送失败;具体参照短信平台接口文档)
      */
    private String status;
    /**
      * 用户ID
      */
    private String userId;
    /**
      * 手机号码
      */
    private String phone;
    /**
      * 时间戳
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime ts;
}